package com.holystone.orca.itsm.system.service.impl;

import com.holystone.orca.itsm.system.mybatis.mapper.SysUserRoleMapper;
import com.holystone.orca.itsm.system.model.SysUserRole;
import com.holystone.orca.itsm.system.service.SysUserRoleService;
import com.holystone.orca.itsm.system.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserRoleServiceImpl extends BaseServiceImpl<SysUserRole> implements SysUserRoleService {
    @Autowired
    private SysUserRoleMapper userRoleMapper;
    @Override
    public List<String> selectUserRole(Integer userId) {
        return userRoleMapper.selectUserRoleCode(userId);
    }
}
